package com.xbongbong.saas.domain.entity;

import com.xbongbong.paas.toolbox.util.DateUtil;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author feng.zheng
 * @version v1.0
 * @date 2019/2/26 16:08
 * @since v1.0
 */
@Getter
@Setter
public class InvoiceRelationshipEntity implements Serializable {

    private static final long serialVersionUID = 909965629559498027L;

    // id
    private Long id;
    // 公司id
    private String corpid;
    // 客户id
    private Long customerId;
    // 客户名
    private String customerName;
    // 发票id
    private Long invoiceId;
    // 合同id
    private Long contractId;
    // 合同名
    private String contractName;
    // 合同编号
    private String contractNo;
    // 回款id
    private Long paymentId;
    // 回款编号
    private String paymentNo;
    //回款单id
    private Long paymentSheetId;
    //回款单编号
    private String paymentSheetNo;
    // 金额
    private Double money;
    // 删除(1:删除)
    private Integer del;
    // 类型(0,非合并;1,合同合并开票;2,回款合并开票;)
    private Integer type;
    // 审批字段
    private Integer flowStatus;
    // 是否作废
    private Integer isCancel;
    // 添加时间
    private Long addTime;
    // 修改时间
    private Long updateTime;

    public InvoiceRelationshipEntity(){
        corpid = "";
        customerId = 0L;
        customerName = "";
        invoiceId = 0L;
        contractId = 0L;
        contractName = "";
        contractNo = "";
        paymentId = 0L;
        paymentNo = "";
        paymentSheetId = 0L;
        paymentSheetNo = "";
        money = 0D;
        type = 0;
        isCancel = 0;
        updateTime = (long)DateUtil.getInt();
        del = 0;
    }
}
